package com.techysky.util;

import java.util.HashMap;
import java.util.Map;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 加载属性文件
 * 
 * @author nichao
 *
 */
@Component
@ConfigurationProperties(locations="classpath:mainplanning.yml",prefix="units") 
public class UnitUtils {

	/**
	 * 
	 */
	private  Map<String,String> unitMap = new HashMap<>();

	public  Map<String, String> getUnitMap() {
		return unitMap;
	}

	public  void setUnitMap(Map<String, String> unitMap) {
		this.unitMap = unitMap;
	}

	
}